#!/bin/bash

readonly RESULT=$(( $RANDOM % 100 + 1 ))
#  验证用， 不可公布  echo  "result  ==>  $RESULT   "
echo "game  start"
read -p  "请输入数字"  num
count=0

while  [[ $RESULT != $num   ]]  ;  do


    let  count++ 


    if [[   $RESULT -gt  $num    ]]  ; then  
        echo  "$num  小了"
    
    elif [[  $RESULT  -lt  $num ]] ;  then 
        echo "$num  大了"
    fi
    read  -p   "continue input  your   num "  num 
    



done  
    echo  " 你猜了 $count  次  !"
    echo  " mission complete !!! "

















